package hunglv.android.rss.entities;

import java.util.ArrayList;
import java.util.List;

public class RSSFeed {
	private String _title;
	private String _pubdate;
	private int _itemcount = 0;
	
	private List<RSSItem> _itemlist;

	public RSSFeed() {
		_itemlist = new ArrayList<RSSItem>();
	}

	public int addItem(RSSItem item) {
		_itemlist.add(item);
		_itemcount++;
		return _itemcount;
	}

	public RSSItem getItem(int location) {
		return _itemlist.get(location);
	}

	public List<RSSItem> getAllItems() {
		return _itemlist;
	}

	public int getItemCount() {
		return _itemcount;
	}

	public void setTitle(String title) {
		_title = title;
	}

	public void setPubDate(String pubdate) {
		_pubdate = pubdate;
	}

	public String getTitle() {
		return _title;
	}

	public String getPubDate() {
		return _pubdate;
	}
	
	//------------------------------------------------
	
}
